cmake_minimum_required(VERSION 3.18.0)
project(Test VERSION 0.1.0) 

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
set(CMAKE_BUILD_TYPE debug)

#查找必要的依赖包
set(Open3D_ROOT /usr/local/bin/Open3D)
find_package(Open3D REQUIRED)
find_package(OpenCV 4 REQUIRED)

# 指定生成目标
add_executable(main main.cpp)

target_link_libraries(main ${OpenCV_LIBS} realsense2 Open3D::Open3D)

